_init: function(source, title, banner, params) {
this.source = source;
+ this.title = title;
this.urgency = Urgency.NORMAL;
this.resident = false;
// 'transient' is a reserved keyword in JS, so we have to use an alternate variable name
y_fill: false,
y_align: St.Align.START });
+ this.title = title;
title = title ? _fixMarkup(title.replace(/\n/g, ' '), params.titleMarkup) : '';
this._titleLabel.clutter_text.set_markup('<b>' + title + '</b>');
createNotificationIcon: function() {
this._iconBox = new St.Bin({ style_class: 'avatar-box' });
this._iconBox._size = this.ICON_SIZE;
-
- this._updateAvatarIcon();
-
- return this._iconBox;
- },
-
- _updateAvatarIcon: function() {
let textureCache = St.TextureCache.get_default();
let file = this._contact.get_avatar_file();
icon_type: St.IconType.FULLCOLOR,
icon_size: this._iconBox._size });
}
+
+ return this._iconBox;
+ },
+
+ _updateAvatarIcon: function() {
+ this._setSummaryIcon(this.createNotificationIcon());
+ this._notification.update(this._notification.title, null, { customContent: true, icon: this.createNotificationIcon() });
},
open: function(notification) {